﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Himall.Entity.Config
{
   public class CashDepositDetailInfoConfig : EntityTypeConfiguration<CashDepositDetailInfo>
    {
        public CashDepositDetailInfoConfig()
        {
            ToTable("Himall_CashDepositDetail");
            Property(item => item.Operator).HasColumnType("varchar").HasMaxLength(100);
            Property(item => item.Description).HasColumnType("varchar").HasMaxLength(1000);
          
            HasRequired(x => x.Himall_CashDeposit).WithMany(x => x.Himall_CashDepositDetail).HasForeignKey(x => x.CashDepositId);
        }
    }
}
